"""
1. 出拳
    玩家：手动输入
    电脑：1. 固定：剪刀； 2. 随机

2. 判断输赢
    2.1 玩家获胜
    2.2 平局
    2.3 电脑获胜
"""
import random

gamer = int(input("请出拳：1.剪刀 2.石头 3.布\n"))

pc = random.randint(1, 3)

if (gamer == 1 and pc == 2) or (gamer == 2 and pc == 3) or (gamer == 3 and pc == 1):
    print("玩家获胜")
elif (gamer == 1 and pc == 3) or (gamer == 2 and pc == 1) or (gamer == 3 and pc == 2):
    print("电脑获胜")
else:
    print("平局")
